package com.itlong.cloud.enumerate;

/**
 * <desc>
 *     云对讲设备与云端同步业务数据指令
 * </desc>
 */
public enum SmartCommunityEnum {
    PUSH_PROJECT(1,"项目信息变更","JSONObject,类似{projectId:88888888}"),
    PUSH_USER_PROJECT(2,"用户所在项目信息变更","JSONObject,类似{userId:123,projectId:88888888}"),
    PUSH_DEVICE(3,"设备信息变更","JSONArray,类似[{deviceUnique:8888888830001},{deviceUnique:8888888830002},{deviceUnique:8888888830003}]"),
    PUSH_ROOM(4,"房间信息变更","JSONArray,类似[{roomId:1},{roomId:2},{roomId:3}]"),
    PUSH_USER_ROOM(5,"用户的房间信息变更","JSONArray,类似[{userId:123,roomId:1},{userId:123,roomId:2},{userId:123,roomId:3}]"),
    PUSH_MEDIA(6,"多媒体信息变更","JSONObject,类似{projectId:88888888}"),
    PUSH_FULL(7,"房间全量更新","JSONObject,类似{projectId:88888888}"),
    PUSH_RELOGIN(8,"云对讲业务服务器地址变更","JSONObject,类似{projectId:88888888}"),
    PUSH_DEVICE_ONE(9,"云对讲单个设备物理地址变更","JSONobject,类似{projectId:88888888,deviceUnique:00000315002,sn:00000315002001}"),
    PUSH_FACE_INFO(10,"人脸信息变更","JSONobject,类似{projectId:88888888}"),
    PUSH_DEVICE_FACE_INFO(11,"云对讲单个设备是否支持人脸识别变更","JSONobject,类似{deviceUnique:00000315002}"),
    PUSH_TEMP_AUTH(12,"云对讲临时权限变更","JSONobject,类似{userId:xxxxxxxxxxxxxxxx,projectId:xxxxxxxxx,type:1}"),
    PUSH_BLACK_LIST(13,"黑名单信息变更","JSONArray,类似[{userId:123,projectId:123},{userId:123,projectId:123}]"),
    ;

    private Integer commandType; //指令类型
    private String commandDes; //指令描述
    private String commandParameter;  // 指令参数示例

    SmartCommunityEnum(Integer commandType,String commandDes,String commandParameter){
        this.commandType = commandType;
        this.commandDes = commandDes;
    }
    public Integer getCommandType(){
        return this.commandType;
    }
    public String getCommandDes(){
        return this.commandDes;
    }

}
